const { getOrders, delOrders, findOrders
} = require('./../dao/ordersDao');
//获取
module.exports.getOrders = async function (data) {
    var data = await getOrders(data);
    return data;
}
//删除
module.exports.delOrders = async function (data) {
    var data = await delOrders(data);
    return {
        message: '删除成功',
        state: 1,
        data
    }
}
//查找
module.exports.findOrders = async function (data) {
    var data = await findOrders(data);
    return {
        message: '查找成功',
        state: 1,
        data
    }
}